Skip to content

Optimisations for nw[i,j] <- v, particularly when modifying many edges. - #98

Open
krivit wants to merge 2 commits into
masterfrom
bracket-binary-bulk
Open

krivit wants to merge 2 commits into
masterfrom
bracket-binary-bulk

Conversation

@krivit

@krivit krivit commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

network's [<- operator for names.eval = NULL (binary mode) now filters out redundant undirected edges and self-loops (when disabled) at an earlier stage and calls edge addition and deletion and edge attribute modification in bulk rather than once per edge affected.

This particularly speeds up operations such as

nw <- network.initialize(100, dir = FALSE)
nw[,] <- 1

@krivit
krivit requested a review from CarterButts October 9, 2026 02:56
…s out redundant undirected edges and self-loops (when disabled) at an earlier stage and calls edge addition and deletion and edge attribute modification in bulk rather than once per edge affected.
@krivit
krivit force-pushed the bracket-binary-bulk branch from 8ea1836 to 1847c40 Compare October 9, 2026 02:57
…ed networks, establish the order (nonzero|nonFALSE, NA, 0|FALSE) in which conflicting values are prioritised.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant